<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h1 id="title">标题</h1>
    <div data-id="12465" id="good">厉害啦</div>
    <div data-id="12" id="haha">哈哈哈哈</div>

    <script src="../src/tangth.js"></script>

    <script>
        var good = $("#good");
        var haha = $("#haha");

        good.on('click', function(){
            console.log('sad', this.innerHTML);
        })


        haha.on('click', function(){
            console.log('啊哈哈哈哈', $(this));
        })

        haha.on('click.abc', function(){
            console.log('abc', $(this));
        })

        function click_fn(){
            console.log("click_fn");
        }

        haha.on('mouseover.fn', click_fn)

        haha.off();
        // haha.off('click');
        // haha.off('click.abc');
        // haha.off('click.fn');


        // good.on('mouserover', function(){
        //     console.log('啊哈哈哈哈', good);
        // })

        // document.getElementById("good").addEventListener('click', function(){
        //     console.log("abc", this);
        // })

        // // good.off();
        // console.log('啊哈哈哈哈', haha);
        // console.log('good', good);


        // function title(a, b){
        //     console.log("fn-title", this);
        //     console.log("args", a, b);
        // }

        // document.getElementById("title").onclick = function(){
        //     console.log("title", this);

        //     title.apply(this, arguments);
        // }    
        
    </script>
</body>
</html>